<template>
    <div>
        <h3>vue2</h3>
        <h1>count:{{ count }}</h1>
        <button @click="count++">+</button>
        <button @click="incCount">+</button>
        <button @click="count--">-</button>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                count: 0
            }
        },
        methods: {
            incCount() {
                this.count++
            }
        }
    }
</script>